import Vue from 'vue';

import App from './App.vue';
import TsCard from './TsCard.vue';
import TsNews from './TsNews.vue';
Vue.component('TsCard', TsCard);
Vue.component('TsNews', TsNews);
Vue.component('TsPlay', () => import('./TsPlay.vue'));
Vue.component('TsShop', () => import('./TsShop.vue'));

Vue.prototype.count = 10
Vue.mixin({
  data() {
    return {
      num: 100
    }
  },
  created() {
    console.log('mixin created');
  },
  methods: {
    add(x, y) {
      return x + y;
    }
  },

});


// new Vue() '.vue'

new Vue({
  el: '#app',
  render: h => h(App),
});